//Accepted
#include <cstdio>
#include <cmath>
#include <iostream>


int x, y, i, j, d, dif;
int a[10], c[10];
void rec(int z){
	int p = (int)(pow(10, z)+0.1);
	int q = (9-c[z]);
	int pp;
	if(z==d){
		++d;
	}
	if(y >= p)
	{
		if(dif > q*p){//vai pular
			if(q){
				dif-=p*q;
				for(i=(c[z]+1)%10, j=0;j<q;i=(i+1)%10, ++j){
					a[i]+=p;
				}
				for(i=z+1;i<d;++i){
					a[c[i]]+=p*q;
				}
				if(z){
					pp = z*q*((int)(pow(10, z-1)+0.1));
					for(i=0;i<10;++i){
						a[i]+=pp;
					}
				}
			}
			c[z]=9;
			rec(z+1);
		}
		q=(dif/p);
		dif-=q*p;
		for(i=q*p;i>0;i-=p){
			c[z]=(c[z]+1)%10;
			a[c[z]]+=p;
		}
		for(i=z+1;i<d;++i){
			a[c[i]]+=p*q;
		}
		if(z){
			pp = z*q*((int)(pow(10, z-1)+0.1));
			for(i=0;i<10;++i){
				a[i]+=pp;
			}
		}
	}
	c[z]=(c[z]+1)%10;
}

int main(){
	//freopen("in.txt","r",stdin);//freopen("out.txt","w",stdout);
	scanf("%d%d", &x, &y);
	for(i=0;i<10;++i){
		a[i]=0;
		c[i]=0;
	}
	
	j=x;d=1;
	c[0]=j%10;
	while(j/=10)c[d++]=j%10;
	dif=y-x;
	for(i=0;i<d;++i){
		a[c[i]]++;
	}
	rec(0);
	
	printf("%d", a[0]);
	for(i=1;i<10;++i)
		printf(" %d", a[i]);
	printf("\n");

	return 0;
}
